package com.idp.system.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.idp.common.base.BaseEntity;

/**
 * 用户管理实体类
 * @author King
 */
public class SysUser extends BaseEntity implements Serializable {

	private static final long serialVersionUID = -802158862722106613L;

	/** 用户账号 */
	private String username;

	/** 用户密码 */
	private String password;

	/** 姓名 */
	private String name;

	/** 组织ID */
	private String orgId;

	/** 出生日期 */
	private Date birthday;

	/** 电话 */
	private String phone;

	/** 邮箱 */
	private String email;

	/** 描述 */
	private String description;

	/** 用户头像 */
	private String userPhoto;

	/** 新密码 */
	private String newPassword;

	/** 组织编码 */
	private String orgCode;

	/** 组织名称 */
	private String orgName;

	/** 角色id,逗号分隔 */
	private String roleIds;

	/** 角色名称 **/
	private String roleName;

	/** 用户菜单 */
	private List<SysMenu> menuList;

	public String getUsername() {

		return username;
	}

	public void setUsername(String username) {

		this.username = username;
	}

	public String getPassword() {

		return password;
	}

	public void setPassword(String password) {

		this.password = password;
	}

	public String getName() {

		return name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public String getOrgId() {

		return orgId;
	}

	public void setOrgId(String orgId) {

		this.orgId = orgId;
	}

	public Date getBirthday() {

		return birthday;
	}

	public void setBirthday(Date birthday) {

		this.birthday = birthday;
	}

	public String getPhone() {

		return phone;
	}

	public void setPhone(String phone) {

		this.phone = phone;
	}

	public String getEmail() {

		return email;
	}

	public void setEmail(String email) {

		this.email = email;
	}

	public String getDescription() {

		return description;
	}

	public void setDescription(String description) {

		this.description = description;
	}

	public String getUserPhoto() {

		return userPhoto;
	}

	public void setUserPhoto(String userPhoto) {

		this.userPhoto = userPhoto;
	}

	public String getNewPassword() {

		return newPassword;
	}

	public void setNewPassword(String newPassword) {

		this.newPassword = newPassword;
	}

	public String getOrgCode() {

		return orgCode;
	}

	public void setOrgCode(String orgCode) {

		this.orgCode = orgCode;
	}

	public String getOrgName() {

		return orgName;
	}

	public void setOrgName(String orgName) {

		this.orgName = orgName;
	}

	public String getRoleIds() {

		return roleIds;
	}

	public void setRoleIds(String roleIds) {

		this.roleIds = roleIds;
	}

	public String getRoleName() {

		return roleName;
	}

	public void setRoleName(String roleName) {

		this.roleName = roleName;
	}

	public List<SysMenu> getMenuList() {

		return menuList;
	}

	public void setMenuList(List<SysMenu> menuList) {

		this.menuList = menuList;
	}

	@Override
	public String toString() {

		return "用户管理：[用户账号=" + username + ", 用户密码=" + password + ", 姓名=" + name + ", 组织ID=" + orgId
				+ ", 出生日期=" + birthday + ", 电话=" + phone + ", 邮箱=" + email + ", 备注=" + description
				+ ", 用户头像=" + userPhoto + "]";
	}

}
